package chapter03.Example12;
class Student1{
    String name;{
        System.out.println("我是构造代码块");
    }
    public Student1(){
        System.out.println("我是Student类的构造方法");
    }
}
public class Example12 {
    public static void main(String[]args){
        Student1 stu1=new Student1();
        Student1 stu2=new Student1();
    }
}